-- GENERATED SPELL FOR [Gurubashi Berserker] --


function spell0_11352(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_11352', 566, 1)
end

function spell1_11352(pUnit, Event) --@Intimidating Roar,n/a--
pUnit:FullCastSpellOnTarget(16508,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11352', 8329, 1)
end

function spell2_11352(pUnit, Event) --@Knock Away,n/a--
pUnit:FullCastSpellOnTarget(11130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11352', 624, 1)
end

function spell3_11352(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(15588,pUnit)
pUnit:RegisterEvent('Sorts_11352', 10304, 1)
end

function Sorts_11352(pUnit, Event)
local choix_sorts_11352 = math.random(0, 3)
if choix_sorts_11352 == 0 then
pUnit:RegisterEvent('spell0_11352', 1, 1)
end
if choix_sorts_11352 == 1 then
pUnit:RegisterEvent('spell1_11352', 1, 1)
end
if choix_sorts_11352 == 2 then
pUnit:RegisterEvent('spell2_11352', 1, 1)
end
if choix_sorts_11352 == 3 then
pUnit:RegisterEvent('spell3_11352', 1, 1)
end
end

function mob11352_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11352', math.random(1500, 3000), 1)
end

function mob11352_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11352_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11352_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11352, 1, 'mob11352_Action')
RegisterUnitEvent(11352, 2, 'mob11352_Leave')
RegisterUnitEvent(11352, 3, 'mob11352_Kill')
RegisterUnitEvent(11352, 4, 'mob11352_Die')
